package com.wss.service.fegin;


import com.wss.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.wss.gateway.config.ServiceConfig;
import com.wss.service.fegin.fallbackFactory.EmailServiceFallbackFactory;

@FeignClient(value = ServiceConfig.EMAILSERVICENAME,fallbackFactory = EmailServiceFallbackFactory.class)
public interface EmailService {

    @GetMapping("/email/send")
    Result sendEmail(@RequestParam("email")String email, @RequestParam("code") String code);
}
